import request from '@/utils/request'

export function getReportList(data) {
  return request({
    url: '/report/page',
    method: 'post',
    data
  })
}

export function addReport(data) {
  return request({
    url: '/report',
    method: 'post',
    data
  })
}

export function editReport(data) {
  return request({
    url: '/report',
    method: 'put',
    data
  })
}

export function getReport(id) {
  return request({
    url: `/report/${id}`,
    method: 'get'
  })
}

export function delReport(id) {
  return request({
    url: `/report/${id}`,
    method: 'delete'
  })
}
